package com.day08;

import java.util.Arrays;

public class ArraysTest {
    public static void main(String[] args) {
        String str = "sajfwekfvwuifvwhfgqu";

        // 转换为字符数组
        char[] ch = str.toCharArray();
        // 升序
        Arrays.sort(ch);

        //倒序打印
        for (int i = ch.length - 1; i >= 0; i--) {
            System.out.println(ch[i]);
        }
    }
}